package com.simple.behavior.superclassandsubclass.strategy;

/**
 * 可以用来提供辅助类的函数
 *
 * @author simple
 * @version 1.0
 * @date 2019-01-04 16:26
 * @since 1.0
 */
public abstract class AbstractCalculator implements Calculator {
    public int[] split(String exp, String opt) {
        String[] split = exp.split(opt);
        int[] arrayInt = new int[2];
        arrayInt[0] = Integer.parseInt(split[0]);
        arrayInt[1] = Integer.parseInt(split[1]);
        return arrayInt;
    }
}
